package school.xauat.offershow.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import school.xauat.offershow.pojo.Comment;

import java.util.List;

/**
 * @author ：zsy
 * @date ：Created 2021/12/16 20:28
 * @description：
 */
@Data
@ApiModel("条目类")
@Setter
@Getter
@ToString
public class EntryResponseType {
    private Integer id;

    @ApiModelProperty("公司名")
    private String company;

    @ApiModelProperty("职位")
    private String position;

    @ApiModelProperty("地点")
    private String city;

    @ApiModelProperty("工资")
    private String salary;

    @ApiModelProperty("行业")
    private String business;

    @ApiModelProperty("学历")
    private String education;

    @ApiModelProperty("发布时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String publish_time;

    @ApiModelProperty("浏览量")
    private int views;

    @ApiModelProperty("用户id")
    private Integer user_id;

    @ApiModelProperty("备注")
    private String content;

    @ApiModelProperty("是否收藏")
    private boolean isStars;

    @ApiModelProperty("留言列表")
    private List<Comment> commentList;

}
